package com.michau.testitas.core.dao.hibernate;

import com.michau.testitas.common.model.testentity.TestEntity;
import com.michau.testitas.core.dao.api.TestEntityDao;
import org.springframework.stereotype.Repository;


/**
 * User: michau
 * Date: 3/2/13
 * Time: 1:23 PM
 */
@Repository
public class TestEntityDaoHibernate extends GenericDaoHibernate<TestEntity, Long> implements TestEntityDao {

    public TestEntityDaoHibernate() {
        super(TestEntity.class);
    }

    @Override
    public void createOrUpdate(TestEntity testEntity) {
        getSession().saveOrUpdate(testEntity);
    }
}
